﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class MatchType
    {
        private IDataRepository _dataObject;
        public MatchType(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public void Create()
        {
            _dataObject.CreateMatchType(this);
        }
        public List<MatchType> GetAllMatchType()
        {
            return _dataObject.GetAllMatchType();
        }
        public void DeleteMatchType()
        {
            _dataObject.DeleteMatchType(this);
        }
        public void GetMatchTypeById()
        {
            _dataObject.GetMatchTypeById(this);
        }
        public void UpdateMatchType()
        {
            _dataObject.UpdateMatchType(this);
        }
    }
}
